#include "LeftCenterRight.h"

namespace OpenDrive {
	LeftCenterRight::LeftCenterRight(){}

	LeftCenterRight::~LeftCenterRight(){}

	Lane&  LeftCenterRight::getLane(int laneId)	{
			return lanes[laneId];
	}
	int LeftCenterRight::getLaneSize()const	{
		return lanes.size();
	}
	std::unordered_map<int, Lane>& LeftCenterRight::getLanes(){
		return lanes;
	}

	bool LeftCenterRight::laneExist(int laneId) const	{
		return lanes.find(laneId) != lanes.end();
	}

	void LeftCenterRight::addLanes(const Lane &lane){
		lanes.insert(std::pair<int, Lane>(lane.getId(), lane));
	}
}